package com.alex.j2se.math;

import org.junit.Assert;
import org.junit.Test;

import java.math.BigDecimal;

/**
 * Author  : gaojun            <br/>
 * Date    : 2020/8/5                          <br/>
 * Time    : 10:44 上午                         <br/>
 * ---------------------------------------    <br/>
 * Desc    :
 */
public class MathTest {

    @Test
    public void absAndFloorTest() {
        System.out.println(new BigDecimal((float)Math.abs(31636 - 31652)/31636));
        Assert.assertTrue((float)Math.abs(24086 - 24096)/24086 > 0.0004);
    }
}
